package com.easylinkin.linkappapi.function.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.easylinkin.linkappapi.devicetype.entity.DeviceType;
import com.easylinkin.linkappapi.function.typehandler.RefDeviceTypeHandler;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import lombok.Data;


@Data
@TableName("linkapp_function_ref_device_type")
public class LinkappFunctionRefDeviceType {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Min(Long.MIN_VALUE)
    @Max(Long.MAX_VALUE)
    @TableId(type = IdType.AUTO,value = "id_")
    private Long id;

    /**
     * 功能识别码
     */
    @TableField("function_id")
    private String functionId;

    @TableField(value = "ref_device_type",typeHandler = RefDeviceTypeHandler.class)
    public List<DeviceType> refDeviceTypeList;

}
